﻿@using Mvc4WebApiKoTb.Helpers
@model Mvc4WebApiKoTb.Models.RegisterModel
@{
    ViewBag.Title = "Register";
}

<div class="page-header">
    <h2>@ViewBag.Title</h2>
</div>

<div class="well">
    <h2>Create a new account.</h2>
    <p>
        Passwords must be at least @Membership.MinRequiredPasswordLength characters long.
    </p>
</div>

@using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @class = "form-horizontal" }))
{
     <h3>Registration Form</h3>
        <hr/>
    <fieldset>
        @* Unseren eigenen Validation Summary anzeigen, damit dieser auch in die Twitter Api passt. *@
        @Html.ValidationSummary()

        <div class="control-group">
            @Html.LabelFor(m => m.Email, new { @class = "control-label" })
            <div class="controls">
                @Html.TextBoxFor(m => m.Email)
            </div>
        </div>
        <div class="control-group">
            @Html.LabelFor(m => m.Password, new { @class = "control-label" })
            <div class="controls">
                @Html.PasswordFor(m => m.Password)
            </div>
        </div>
        <div class="control-group">
            @Html.LabelFor(m => m.ConfirmPassword, new { @class = "control-label" })
            <div class="controls">
                @Html.PasswordFor(m => m.ConfirmPassword)
            </div>
        </div>
        <div class="form-actions">
            <input class="btn btn-primary" type="submit" value="Register" />
        </div>
    </fieldset>
}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
